package cn.itsource.serivce;

import cn.itsource.domain.Permission;

import java.util.ArrayList;
import java.util.List;

public interface IPermissionService {


    /**
     * --------------------------------------------------------
     * 查询一个树状结构的权限列表
     * --------------------------------------------------------
     **/
    List<Permission> selectAllForTree();

    /**
     * --------------------------------------------------------
     * 根据角色ID查询权限的ID集合
     * --------------------------------------------------------
     **/
    List<Long> selectIdsByRoleId(Long roleId);
}
